<?php
/*
<Model Information> 
Author: Naseer Ahmad
Date: 14-07-2011
Last Updated on:
Last Updated by:
*/


class userRegistrationModel extends appModel
{
	var $name = 'userRegistrationModel';
	
	function addUser(	$userNickName, 
						$userFullName, 
						$userEmail, 
						$userPassword,
						$userContactInfo
					)
	{
		$fv = array('userNickName'		=>		$userNickName,
					'userFullName'		=>		$userFullName,
					'userEmail'			=>		$userEmail,
					'userPassword'		=>		md5($userPassword),
					'userContactInfo'	=>		$userContactInfo,
					'userCreatedDate'	=> "NOW()");
		if($this -> _insertTable('usersInfo', $fv))
			return true;
		else
			return false;
	}
						
	
}

?>